package a.f.c;

import a.c.k;
import a.c.q;
import a.c.w;
import a.f.o;
import a.f.r;
import a.f.rc;
import a.i.y;

import java.util.HashSet;

public class c
  extends r
{
  private y g;
  private k h;
  private k i;
  private k j;
  private e k = new e();
  public static boolean l;
  
  public c()
  {
    this.k.c(true);
  }
  
  public c(rc paramrc)
  {
    this();
    a(paramrc);
  }
  
  public boolean b()
  {
    return this.k.d();
  }
  
  public void a(boolean paramBoolean)
  {
    this.k.c(paramBoolean);
  }
  
  public void c(o paramo)
  {
    a(paramo);
    b(paramo);
  }
  
  public void d(o paramo)
  {
    c(paramo);
    c();
  }
  
  void a(q paramq)
  {
    boolean bool3 = h.j;
    boolean bool2 = h.i;
    k localk1 = paramq.c(i.c);
    if (localk1 != null)
    {
      boolean bool1 = b();
      HashSet localHashSet = new HashSet();
      k localk2;
      w localw;
      if (!bool3)
      {
        if (!bool1)
        {
          localk2 = paramq.c(i.b);
          localw = paramq.v();
          do
          {
            if (!localw.e()) {
              break;
            }
            localHashSet.add(localk2.get(localw.d()));
            if (bool3) {
              break label142;
            }
            localw.f();
            if (bool2) {
              break label138;
            }
          } while (!bool2);
        }
        this.g = new y(paramq);
        if (bool3) {}
      }
      else
      {
        localk2 = paramq.c(i.a);
        label138:
        label142:
        localw = paramq.v();
        do
        {
          if (!localw.e()) {
            break;
          }
          a.c.e locale = localw.d();
          if (!bool3)
          {
            if (localk1.getBool(locale)) {
              if ((bool3) || (!bool1))
              {
                if (bool3) {
                  continue;
                }
                if (!localHashSet.contains(localk2.get(locale))) {}
              }
              else
              {
                this.g.a(locale);
              }
            }
            localw.f();
          }
        } while (!bool2);
      }
    }
  }
  
  void c()
  {
    if ((h.j) || (this.g != null))
    {
      this.g.g();
      this.k.doLayout((o)this.g.j());
      this.g = null;
    }
  }
  
  public void a(g paramg)
  {
    this.k.a(paramg);
  }
  
  public g d()
  {
    return this.k.g();
  }
  
  void b(q paramq)
  {
    boolean bool = h.j;
    this.h = paramq.c(i.c);
    this.i = paramq.c(i.a);
    this.j = paramq.c(i.b);
    if (!bool) {
      if (this.h != null) {
        paramq.j(i.c);
      }
    }
    if (!bool) {
      if (this.i != null) {
        paramq.j(i.a);
      }
    }
    if (this.j != null) {
      paramq.j(i.b);
    }
  }
  
  void c(q paramq)
  {
    boolean bool = h.j;
    if (!bool) {
      if (this.h != null) {
        paramq.a(i.c, this.h);
      }
    }
    if (!bool)
    {
      if (this.i != null) {
        paramq.a(i.a, this.i);
      }
      if (bool) {}
    }
    else
    {
      if (this.j != null) {
        paramq.a(i.b, this.j);
      }
      this.h = null;
      this.i = null;
    }
    this.j = null;
  }
  
  public boolean canLayout(o paramo)
  {
    boolean bool = true;
    if (!h.j)
    {
      if (a() != null)
      {
        a(paramo);
        b(paramo);
      }
    }
    else
    {
      bool = a().canLayout(paramo);
      c(paramo);
      c();
    }
    return bool;
  }
  
  public void doLayout(o paramo)
  {
    if (!h.j)
    {
      if (a() == null) {
        return;
      }
      a(paramo);
      b(paramo);
    }
    a().doLayout(paramo);
    c(paramo);
    c();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.c.c

 * JD-Core Version:    0.7.0.1

 */